package com.atguigu.lease.web.admin.service.impl;

import com.atguigu.lease.common.minio.MinioProperties;
import com.atguigu.lease.common.minio.MinioUtil;
import com.atguigu.lease.web.admin.service.FileService;
import io.minio.MinioClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public class FileServiceImpl implements FileService {
    @Autowired
    private MinioUtil minioUtil;
    @Override
    public String uploadFile(MultipartFile file) {
        return minioUtil.uploadFile(file);
    }
}
